package com.api.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class User {

  private String uid;
  private String  username;
  private String  phonenumber;
  private String  password;
  private String  address;
  private String  email;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date birthday;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String registerday;
  private String  privilege;  //0 普通用户 1 VIP
  private String  avatar;

  public String getUid() {
    return uid;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPhonenumber() {
    return phonenumber;
  }

  public void setPhonenumber(String phonenumber) {
    this.phonenumber = phonenumber;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public String getRegisterday() {
    return registerday;
  }

  public void setRegisterday(String registerday) {
    this.registerday = registerday;
  }

  public String getPrivilege() {
    return privilege;
  }

  public void setPrivilege(String privilege) {
    this.privilege = privilege;
  }

  public String getAvatar() {
    return avatar;
  }

  public void setAvatar(String avatar) {
    this.avatar = avatar;
  }

  @Override
  public String toString() {
    return "User{" +
            "uid=" + uid +
            ", username='" + username + '\'' +
            ", phonenumber='" + phonenumber + '\'' +
            ", password='" + password + '\'' +
            ", address='" + address + '\'' +
            ", email='" + email + '\'' +
            ", birthday=" + birthday +
            ", registerday=" + registerday +
            ", privilege='" + privilege + '\'' +
            ", avatar='" + avatar + '\'' +
            '}';
  }
}
